import {request} from '@/base/Request';
import {Resource} from '@/base/model/Resource';

export function getResourceMeg() {
  return request.getArray(Resource, `/api/resource/meg`);
}

export function getResourceMegId(params: {
  id: number
}) {
  return request.getArray(Resource, '/api/resource/role-meg', {params});
}
